package com.lh.entity.table;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@TableName("deadline_node_record")
public class DeadLineNodeRecord {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("node_id")
    private Integer nodeId;

    @TableField("fileUrl")
    private String fileUrl;

    @TableField("progress")
    private String progress;

    @TableField("remark")
    private String remark;

    @TableField("duration")
    private Integer duration;

    @TableField("state")
    private String state;

    @TableField("description")
    private String description;

    @TableField("end_time")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date endTime;

    @TableField("update_time")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;

    @TableField("update_by")
    private String updateBy;
}
